<?php
	function getHeader(){
		if (!$login)
		{	echo '<div id="loginarea">';
			echo '<form action="php/auth.php" method="post">';
			echo '	<table id="inputLogin">';
			echo '	<tr>';
			echo '		<td class="iltext">Username</td><td><input type="text" name="usr"></td>';
			echo '		</tr><tr>';
			echo '		<td class="iltext">Password</td><td><input type="password" name="pass"></td>';
			echo '	</tr><tr>';
			echo '	<td></td><td><input type="submit" value="login" /></td>';
			echo '	</tr>';
			echo '</table>';
			echo '</form>';
			echo '</div>';
		}
		else
		{
	?>
		<div id="logprofpicarea">
		<div id="profpicarea">
			<table class="logouttable"><tr>
			<td class="logouttd">
			<?php
				echo '<h1 class="username">'.$username.'</h1>';
				echo '<br/>'.'15 follower, 22 followee'.'<br/>';
				echo '<a class="logoutButton" href="php/LogOut.php">Log Out</a>'
			?>
			</td>
			<td style="width:80px">
			<?php
				require_once 'php\photo.php';
				$list = photo::getProfPic($loguname);
				$row = mysql_fetch_array($list);
				if ($row["FileFoto"] == NULL)
					echo '<img id="profpic" src = "'.'images/bg-photo.png'.'"/><br/>';
				else
				{
					echo '<img id="profpic" alt="profpic" src="users/'.$loguname.'/'.$row["FileFoto"].'" />';
				}
			?>
			</td></tr></table>
		</div>
		</div>
	<?php
		}
	}
	
?>